
//
//  LYWithDrawInputCell.m
//  SelectCity
//
//  Created by liuyan on 2019/3/31.
//  Copyright © 2019年 liuyan. All rights reserved.
//

#import "LYWithDrawInputCell.h"

@interface LYWithDrawInputCell()

@property (nonatomic, strong) UILabel *titleLabel;

@end

@implementation LYWithDrawInputCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if ([super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self initSubViews];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return self;
}

#pragma mark - InitSubViews
- (void)initSubViews{
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, 5, WIDTH - 30, 20)];
    self.titleLabel.font = [UIFont systemFontOfSize:12];
    self.titleLabel.textColor = RGB(85, 85, 85);
    [self addSubview:self.titleLabel];
    
    self.detailTF = [[UITextField alloc] initWithFrame:CGRectMake(15, self.titleLabel.bottom + 5, WIDTH - 30, 30)];
    self.detailTF.textColor = RGB(34, 34, 34);
    self.detailTF.font = [UIFont systemFontOfSize:15];
    [self addSubview:self.detailTF];
    
    UIView *line = [[UIView alloc] initWithFrame:CGRectMake(15, 59, WIDTH - 30, 1)];
    line.backgroundColor = RGB(247, 247, 247);
    [self addSubview:line];
}

-(void)setTitle:(NSString *)title{
    _titleLabel.text = title;
}

@end
